package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class SimpleWhenClause {

    private int beginIndex;
    private int endIndex;
    private WhenOperand whenOperand;
    private Result result;

    public SimpleWhenClause(int beginIndex,
                            WhenOperand whenOperand,
                            Result result) {
        this.beginIndex = beginIndex;
        this.endIndex = result.getEndIndex();
        this.whenOperand = whenOperand;
        this.result = result;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public WhenOperand getWhenOperand() {
        return whenOperand;
    }

    public Result getResult() {
        return result;
    }

}
